package com.xc.tjise.TJISE.day05;

import static java.lang.System.out;

public class Staticc {

    private static final int ONE_TWO_THREE = 123; // 常量

    static {
        out.println("static block.");
    }

    public static void main(String[] args) {

        out.println(Math.PI);
        out.println("test");
        out.println("ttt");
    }

}

class Human {
    private String name;
    private static String earth; // 地球 隶属于 *类对象*

    public static void method() {
        out.println("static method.");
//        this.name = "";
//        super.clone();\
//        static int k;
    }

    public void m() {
        this.name = "";
//        static int j;
    }

    public static void main(String[] args) {
        Human tom = new Human();
        Human jerry = new Human();

        tom.name = "Tom";
//        jerry.name = "Jerry";

        out.println(tom.name);
        out.println(jerry.name);

        Human.earth = "Tom 种了一棵树。";
        out.println(Human.earth);
        out.println(Human.earth); // ?

        Human.method();

        tom.m();
    }
}